<template>
  <div>
    <!-- list组件方法 -->
    <van-list :finished="finished" finished-text="没有更多了">
      <!-- SearchTipsListData 传入的数组 v-for 进行遍历 -->
      <van-cell
        @click="cellClick(item)"
        v-for="item in SearchTipsListData"
        :key="item"
        :title="item"
      />
    </van-list>
  </div>
</template>

<script>
export default {
  data() {
    return {
      finished: true,
      list: [],
    };
  },
  //定义一个标签 属性接收父亲SearchPopup 传过来的数组 对页面进行渲染
  props: ["SearchTipsListData"],
  methods: {
    cellClick(val) {
      this.$emit("onSearch", val);
    },
  },
};
</script>
 
<style lang = "less" scoped>
</style>